package com.shop.shop_end.service;

import com.shop.shop_end.dto.TopicVo;
import com.shop.shop_end.entity.Topic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.shop_end.utils.result.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2024-04-23
 */
public interface TopicService extends IService<Topic> {
    // 插入数据 调用topicDAO里的insertTopic配置
    Result insertTopic(Topic topic);

    // 更新数据 调用topicDAO里的updateTopic配置
    Result updateTopic(Topic topic);

    // 删除数据 调用topicDAO里的deleteTopic配置
    Result deleteTopicById(Long topicId);

    // 查询全部数据 调用topicDAO里的getAllTopic配置
    List<TopicVo> getAllTopic();

    // 按主键查询表返回单一的Topic实例 调用topicDAO里的getTopicById配置
    TopicVo getTopicById(Long topicId);

}
